<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ include file="../template/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Consultar Cliente</title>
<link rel="stylesheet" type="text/css" href="css/style.css">

<style type="text/css">
.etiquetaUrl {
	margin-top: 8px;
	margin-bottom: 15px;
	FONT: bold 10px Verdana, Helvetica, sans-serif;
	COLOR: #4F53BC;
}
</style>
</head>
<body>
<form class="form-horizontal" method="post">
<fieldset>
<legend>Administracion Cliente\Consultar Cliente</legend>
<table width="650" class="table-striped table-bordered table-condensed">
<tbody id="tBodyGrid">
	<thead>
    <th>Consultar cliente</th>
  </thead>
  <tr>
	<td style="width: 100px">
	        <div class="control-group">
	          <label class="control-label" for="input01">Nombre Cliente:</label>
	          <div class="controls">
	            <input type="text" class="input-xlarge" name="inputCliente" id="inputCliente" placeholder="Busqueda por Cliente">
	          </div>
	        </div>
			</td>
			<td>
				<a  class="btn btn-primary" href="<%=request.getContextPath()%>/adminCliente/consultarCliente.htm">Consultar</a>
			</td>
  </tr>     
   </tbody>
</table>

<table width="650" class="table-striped table-condensed table-bordered">
 <thead>
	    <tr>
	      	<th>Cliente</th>
	      	<th>Rubro</th>
		    <th>RUC</th>
		    <th>Sitio Web</th>
		    <th>Fecha Registro</th>
		    <th></th>
		    <th></th>
		    
	    </tr>
  </thead>
    <tbody id="tBodyGrid">
  	<c:forEach items="${sessionScope.listaCliente}" var="row" >
  	<tr>
  		
   				<td> <font><c:out value="${row.nombreCliente}"/></font> </td>
   				<td> <c:out value="${row.rubro}"/></td>   				   				
   				<td> <c:out value="${row.ruc}"/> </td>   				
   				<td> <c:out value="${row.sitioWeb}"/> </td>
   				<td> <fmt:formatDate type="both" dateStyle="short" timeStyle="short" value="${row.fechaRegistro}"/></td> 	
   				<td><a class="btn btn-primary" href="<%=request.getContextPath()%>/adminCliente/modificarCliente.htm?codigo=<c:out value='${row.idCliente}'/>">Modificar</a></td>
   				<td><a class="btn btn-primary" href="<%=request.getContextPath()%>/adminCliente/eliminarCliente.htm?codigo=<c:out value='${row.idCliente}'/>">Eliminar</a></td>
  			</tr>
	</c:forEach>
  	
  </tbody>			
   	
</table>
<div class="form-actions">
  
</div>
</fieldset>
 </form> 
</body>

<jsp:include page="../template/footer.jsp"></jsp:include>

</html>